package com.hyt.it.ogt.controller.ykcj.monitor;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hyt.it.ogt.ykcj.common.core.domain.AjaxResult;
import com.hyt.it.ogt.ykcj.framework.web.domain.Server;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiSort;

/**
 * 服务器监控
 * 
 * @author admin
 */
@Api(tags = "monitor.2.服务器监控", value = "服务器监控请求接口")
@ApiSort(value = 302)
@RestController
@RequestMapping("/monitor/server")
public class ServerController
{
    @GetMapping()
    public AjaxResult getInfo() throws Exception
    {
        Server server = new Server();
        server.copyTo();
        return AjaxResult.success(server);
    }
}
